package com.acme.bankapp.exceptions.bank;

import com.acme.bankapp.domain.bank.Account;

@SuppressWarnings("UnusedDeclaration")
public class OverDraftLimitExceededException extends NotEnoughFundsException {
    private Account account;
    private double amountAllowed;

    public OverDraftLimitExceededException(double amount, double amountAllowed, Account account, String message) {
        super(amount, message);
        this.amountAllowed = amountAllowed;
        this.account = account;
    }

    public OverDraftLimitExceededException(double amount, double amountAllowed, Account account) {
        super(amount);
        this.amountAllowed = amountAllowed;
        this.account = account;
    }

    public Account getAccount() {
        return account;
    }

    public double getAmountAllowed() {
        return amountAllowed;
    }
}
